﻿
using Irony.Compiler;

namespace IronLua.Ast {

	public class MethodStatement : FunctionStatement {

		readonly string name;

		public string Name {
			get { return name; }
		}

		public override LuaNodeType NodeType {
			get { return LuaNodeType.MethodStatement; }
		}

		public MethodStatement (CompilerContext context, NonTerminal nonTerminal, SourceLocation location, AstNodeList childNodes)
			: base (context, nonTerminal, location, childNodes)
		{
		}

		public override void Accept (ILuaAstVisitor visitor)
		{
			visitor.VisitMethodStatement (this);
		}
	}
}
